package com.immac.leejc.instream;

import java.io.FileInputStream;
import java.io.ObjectInputStream;

public class Main {
	public static void main(String[] args) throws Exception {
		FileInputStream fileInStream = new FileInputStream("Myfile.ser");
		ObjectInputStream objectInStream = new ObjectInputStream(fileInStream);
		
		Object one = objectInStream.readObject();
		Object two = objectInStream.readObject();
		Object three = objectInStream.readObject();
		
		System.out.println(one);
		System.out.println(two);
		System.out.println(three);
	}
}
